<?php
namespace app\web\validate;

use think\Validate;

/**
 * 商品分类行为验证器
 * @package app\menus\validate
 * @author
 */
class GoodsCategory extends Validate
{
    //定义验证规则
    protected $rule = [
        'name'  => 'require',
        'description'  => 'require',
        'sort'  => 'require',

    ];
    //定义验证提示
    protected $message = [
        'name.require' => '请输入商品分类名称',
        'description.require' => '请输入商品分类描述',
        'sort.require' => '请选择商品排序号',
    ];

}
